 //基本工资（申请）控制
 var jbgzsFieldid = WfForm.convertFieldNameToId("jbgzs");


 WfForm.bindFieldChangeEvent(jbgzsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("基本工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jbgzsFieldid, {
                                value: ""
                            });
  }

    });
 //绩效工资（申请）控制
var jxgzsFieldid = WfForm.convertFieldNameToId("jxgzs");

 WfForm.bindFieldChangeEvent(jxgzsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("绩效工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jxgzsFieldid, {
                                value: ""
                            });
  }

    });
//年终奖金（申请）控制
var nzjjsFieldid = WfForm.convertFieldNameToId("nzjjs");

 WfForm.bindFieldChangeEvent(nzjjsFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("年终奖金不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(nzjjsFieldid, {
                                value: ""
                            });
  }

    });
//基本工资（审批）控制
var jbgzhFieldid = WfForm.convertFieldNameToId("jbgzh");

 WfForm.bindFieldChangeEvent(jbgzhFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("基本工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jbgzhFieldid, {
                                value: ""
                            });
  }

    });
//绩效工资（审批）控制
var jxgzhFieldid = WfForm.convertFieldNameToId("jxgzh");

 WfForm.bindFieldChangeEvent(jxgzhFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("绩效工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(jxgzhFieldid, {
                                value: ""
                            });
  }

    });
//年终奖金（审批）控制
var nzjjhFieldid = WfForm.convertFieldNameToId("nzjjh");

 WfForm.bindFieldChangeEvent(nzjjhFieldid,
    function(obj, id, value) {

  if(value*1<0){
  alert("绩效工资不允许为负值");
  //置空文本框
  WfForm.changeFieldValue(nzjjhFieldid, {
                                value: ""
                            });
  }

    });


















